import request from '@/utils/request'

// 新增消息
export function addMsg(data,classUserId) {
    return request({
      url: '/message/'+classUserId,
      method: 'post',
      data: data
    })
  }

  // 查询班级发送的信息列表
export function sendMessageList(query) {
  return request({
    url: '/message/sendMessageList',
    method: 'get',
    params: query
  })
}

//删除信息
export function deleteMyMessage(msgIds) {
	return request({
		'url': '/message/' + msgIds,
		'method': 'delete'
	})
}
//删除信息
export function updateStatus(msgIds) {
	return request({
		'url': '/message/updateStatus/' + msgIds,
		'method': 'put'
	})
}

// 新增消息
export function addPdMessage(payId) {
  return request({
    url: '/message/addPdMessage/'+payId,
    method: 'post'
  })
}